﻿using ModelLayer;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BusinessLayer
{
    public interface IFShoppingListB
    {
        void CreateShoppingList(int userId, string listName, long completionDate);

        void RemoveShoppingList(int shoppingListId);

        bool AddUserToShoppingList(int shoppingListId, string friendUserName, string uname, string tokenId);

        bool DeleteUserFromShoppingList(int shoppingListId, string friendUserName, string uname, string tokenId);

        void AddProductToShoppingList(int shoppingListId, int productId, int amount);

        void DeleteProductFromShoppingList(int shoppingListId, int productId);

        void MarkAsBought(int shoppingListId, int productId);

        List<ShoppingList> GetShoppingListsWithUname(string uname);

        List<Product> GetProductsWithListId(int listId);

        List<ModelLayer.User> GetSharedUsersForShoppingList(string uname, int slist);
    }
}
